get day from date month year java

73

get last day of month java -

Calendar cal = Calendar.getInstance();
cal.set(Calendar.DATE, cal.getActualMaximum(Calendar.DATE));
Date lastDayOfMonth = cal.getTime();

Comments

Submit
0 Comments